package com.chat.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@TableName(value = "chat_group", autoResultMap = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatGroup implements Serializable {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    private String id;
    /**
     *
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> userIds;
    /**
     *
     */
    private String avatar;

    private String username;


}